package com.sheeran.aichat.service.model.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sheeran.aichat.dao.model.ModelMapper;
import com.sheeran.aichat.entity.model.Model;
import com.sheeran.aichat.service.model.IModelSearchService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author: sheeran
 * @create: 2025/02/20
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class IModelSearchServiceImpl
        extends ServiceImpl<ModelMapper, Model>
        implements IModelSearchService {


    @Override
    public List<Model> listAll() {
        return lambdaQuery().eq(Model::isDeleted, false).list();
    }
}
